#ifndef _CRUDEPHYSICSMGR_HPP
#define _CRUDEPHYSICSMGR_HPP

#include "IPhysicsMgr.hpp"

class CrudePhysicsMgr : public IPhysicsMgr
{
	PhysicsBodyCollection m_bodies;
public:
	
	virtual ~CrudePhysicsMgr() {}
	
	virtual PhysicsBodyCollection queryAABB(const AABB& given_aabb)
	{
		PhysicsBodyCollection result;
		for( PhysicsBodyIter it=m_bodies.start(); it!=m_bodies.end(); ++it ) {
			if( it->getAABB().overlaps(given_aabb) ) {
				result.push_back(*it);
			}
		}
		return result;
	}
};

#endif //CRUDEPHYSICSMGR_HPP
